﻿
window.onload = function () {
	var a_idx = 0;
	$("body").click(function(e) {
		var a = new Array(
			"暴富", "多金", "变美", "变瘦",
			"发财", "+100", "+200", "+300",
			"+400", "+500", "+600", "+700"
			);
		var $i = $("<span/>").text(a[a_idx]);
		a_idx = (a_idx + 1) % a.length;
		var x = e.pageX,
		y = e.pageY;
		$i.css({
			"z-index": 144469,
			"top": y - 20,
			"left": x,
			"position": "absolute",
			"font-weight": "bold",
			"color": "#f00",
			"font-size": "18px"
		});
		$("body").append($i);
		$i.animate({
			"top": y - 180,
			"opacity": 0
		},
		1500,
		function() {
			$i.remove()
		})
	});
};